#include <iostream>
#include "MarsConfig.h"

#ifdef USE_MYMATH
#include "MathFunctions.h"
#else
#include <math.h>
#endif

using namespace std;

int main (int argc, char *argv[]) {
  if (argc < 2) {
    cout << "Version " << Mars_VERSION_MAJOR << "." << Mars_VERSION_MINOR << endl;
    cout << "Usage: " << argv[0] << "numbers" << endl;
    return 1;
  }

  double inputValue = atof(argv[1]);

#ifdef USE_MYMATH
  float f = mysqrt(inputValue);
#else
  float f = sqrt(inputValue);
#endif

  cout << "the squre root of " << inputValue << " is " << f << endl;

  return 0;
}
